|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfurny.entities.TextureData
@Entity public class TextureData
Value object to map a texture to a relational database.
| Field Summary | |
|---|---|
private byte[] |
bytes
|
private long |
id
|
| Constructor Summary | |
|---|---|
TextureData()
Default constructor. |
|
TextureData(java.awt.image.BufferedImage bi)
Constructor that creates a new texture from a BufferedImage. |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Getter for the byte array of texture. |
long |
getId()
Getter for the id. |
void |
setBytes(byte[] bytes)
Setter for the byte array of texture. |
void |
setId(long id)
Setter for the id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long id
private byte[] bytes
| Constructor Detail |
|---|
public TextureData()
public TextureData(java.awt.image.BufferedImage bi)
throws java.io.IOException
bi - The image.
java.io.IOException - If IO fails.| Method Detail |
|---|
public long getId()
public void setId(long id)
id - The id.public byte[] getBytes()
public void setBytes(byte[] bytes)
bytes - The texture as byte array.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||